package com.cjh.feign;

import com.cjh.DemoFeignService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.locks.LockSupport;

/**
 *com.cjh.feign
 *2024/7/23 11:28
 *
 *@author chenjh
 */
@RestController
public class DemoFeignServiceImpl implements DemoFeignService {
    @Override
    public String delay100(String name) {
        LockSupport.parkNanos(1000000_00);
        return "success";
    }

    @Override
    public String delay500(String name) {
        LockSupport.parkNanos(5000000_00);
        return "success";
    }
}
